package com.yangming.springboot.dao;


import com.yangming.springboot.base.BaseQuery;
import com.yangming.springboot.vo.SaleChance;
import com.yangming.springboot.vo.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserDao {
    public User queryUserByUserName(String name);

    public User queryById(Integer id);

    public int save(User user);

    public int update(User user);

    public int delete(Integer id);

    public int deleteBatch(Integer[] ids);

    public List<SaleChance> selectByParams(BaseQuery baseQuery);

    public List<User> selectByUserParams(BaseQuery baseQuery);

    public List<Map<String, Object>> queryAllSales();

}
